/* Copyright (C) 2008  Romolo Camplani, Marco Fortunato, Marco Marelli, Guido Rota, Fabio A. Schreiber et al.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
/*
 * Position.java
 *
 * Created on October 24, 2007, 9:37 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.dei.perla.utils.emulator.models.world;


/**
 *
 * @author Adnan
 */
public class Position {
    
    private int x;
    private int y;
   
    /** Creates a new instance of Position */
    public Position() {
    }
    public Position(int x, int y) {
        this.x = x;
        this.y = y;
    }
    public void setPosition(Position p)
    {
        this.x = p.x;
        this.y = p.y;
    }
    
    public Position getPosition()
    {
        return new Position(x,y);
    }
    
    public int getX() {return x;}
    public int getY() {return y;}
    
    
}
